# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-otp
pkgver=2.9.0
pkgrel=1
pkgdesc="Python One Time Password Library"
url="https://github.com/pyauth/pyotp"
arch="noarch"
license="MIT"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/pyauth/pyotp/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/pyotp-$pkgver"
options="!check" # no tests

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
d2be19a91ffd07cd0e409dd6ab5406f9d81b4ad555d142e8c83cf797fb80ede8aa17df68abab95dc339b327b461783f36db26b67bf360464c6c7fda75ca1c3b9  py3-otp-2.9.0.tar.gz
"
